package com.example.kafka.handler;

import com.example.enums.EventType;
import com.example.kafka.KafkaEvent;
import com.example.kafka.data.BaseEventData;

public interface EventHandler<T extends BaseEventData> {

    boolean validateEvent(KafkaEvent event);

    void handleEvent(KafkaEvent event);

    EventType getEventType();

    Class<T> getEventDataType();
}
